package com.example.demo;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.activiti.engine.impl.el.FixedValue;

/**
 * 任务执行时将通过监听器触发该方法
 * @author Admin
 *
 */
public class CompleteService implements JavaDelegate, java.io.Serializable {

	private FixedValue name;
	
	@Override
	public void execute(DelegateExecution execution) throws Exception {
		
		String name = this.getName().getExpressionText();
		
		System.out.println(name);
		
	}

	public FixedValue getName() {
		return name;
	}

	/**
	 * activiti将通过方法注入值
	 * @param name
	 */
	public void setName(FixedValue name) {
		this.name = name;
	}

}
